package ShipIt::Step::DistClean;

use strict;
use warnings;
use Dist::Joseki;


our $VERSION = '0.02';


use base 'ShipIt::Step';


sub run {
    my ($self, $state) = @_;

    if ($state->dry_run) {
        warn "*** DRY RUN, not cleaning distribution\n";
        return;
    }

    my $dist = Dist::Joseki->get_dist_type;
    $dist->ACTION_distclean;
}


1;


__END__

{% USE p = PodGenerated %}

=head1 NAME

ShipIt::Step::DistClean - ShipIt step for cleaning the distribution

=head1 SYNOPSIS

None.

=head1 DESCRIPTION

This step effectively runs C<make distclean>, or the equivalent in your build
process.

I use it as the last step in the C<.shipit> file.

To use it, just list in your C<.shipit> file.

{% PROCESS standard_pod %}

=cut

